package java19;

public class Code097 {
	User[] stus = new User[3];

	public void addStu(User stu) {
		for (int i = 0; i < stus.length; i++) {
			if (stus[i] == null) {
				stus[i] = stu;
				break;
			}
		}
	}

	public void showStu() {
		for (int i = 0; i < stus.length; i++) {
			if (stus[i] != null) {
				stus[i].info();
			}
		}
	}

}
